package com.jcp.controller;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.jcp.entity.Record;
import com.jcp.service.RecordService;
import com.jcp.util.LayuiData;

@RestController
public class RecordController {
	
	@Autowired
	private RecordService recordService;
	
	@RequestMapping(value="selRecordMessage",produces="application/json;charset=utf-8")
	public LayuiData<Record> selRecordMessage(int page,int limit,@RequestParam(defaultValue="")String carNumber){
		
		LayuiData<Record> layuiData=recordService.selRecordMessageByPage(page, limit, carNumber);
		
		return layuiData;
	}
	
	

}
